package es.xpt.ysf.commons.location.dao;

import java.security.Principal;
import java.util.ResourceBundle;

import es.xpt.ysf.dao.Connection;
import es.xpt.ysf.dao.DAOErrors;
import es.xpt.ysf.dao.DAOException;
import es.xpt.ysf.dao.DbDAOFactory;

/**
 * Mantenimento de paises, provincias y localidades
 * @author joseignacio.garces@xplayat.es
 * @version YSF 1.0
 * @since 
 */

public class LocationDAOFactory extends DbDAOFactory {
	
  private static DAOErrors errors = new DAOErrors(ResourceBundle.getBundle("es.xpt.ysf.commons.location.LocationsDAOErrors"));
	
  public LocationDAOFactory(Connection con, Principal principal ) { // NO_UCD
    super(con, principal);
  }
  
  public LocationDAOFactory(Principal principal) throws DAOException {
    super( principal );
  }
  
  public LocationDAOFactory(Principal principal, String jndiName) throws DAOException {
	  super( jndiName, principal );
  }
  
  
  public CountryDAO getCountryDAO() {
    CountryDAO dao = new CountryDAO(con, principal, errors);
    return dao;
  }
  
  public ProvinceDAO getProvinceDAO() {
    ProvinceDAO dao = new ProvinceDAO(con, principal, errors);
    return dao;
  }
  
  public CityDAO getCityDAO() {
	CityDAO dao = new CityDAO(con, principal, errors);
	return dao;
  }
  
  public AddressDAO getAddressDAO() {
	AddressDAO dao = new AddressDAO(con, principal, errors);
	return dao;
  }

}

// This file has been generated by Logic Generator v1.0
